import request from '@/utils/request'

// 查询外聘申请列表
export function listWpsq(query) {
  return request({
    url: '/system/wpsq/list',
    method: 'get',
    params: query
  })
}

// 查询外聘申请详细
export function getWpsq(id) {
  return request({
    url: '/system/wpsq/' + id,
    method: 'get'
  })
}

// 新增外聘申请
export function addWpsq(data) {
  return request({
    url: '/system/wpsq',
    method: 'post',
    data: data
  })
}

// 修改外聘申请
export function updateWpsq(data) {
  return request({
    url: '/system/wpsq',
    method: 'put',
    data: data
  })
}

// 删除外聘申请
export function delWpsq(id) {
  return request({
    url: '/system/wpsq/' + id,
    method: 'delete'
  })
}
